import { h } from 'vue'
import { ElMessage } from 'element-plus'
export default function showMsg({
  type = 'success',
  duration = 3000,
  msg = '',
  onClose = () => {}
}) {
  ElMessage({
    type: type,
    message: h('span', { style: 'font-size:20px' }, msg),
    duration: duration,
    onClose: onClose
  })
}
